<wxs src="../../utils/common.wxs" module="filter" />


<view class='floatView' wx:if='{{isShow}}'>
  
   <view class='view'>
     <view class='a'>选择优惠券  <image bindtap='closeShow' class='image2' src="../../image/coupon/close.png" /></view>
      <scroll-view class='c' scroll-y="true"  bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}">
          <view class='itemD' wx:for='{{couponList}}' bindtap='chooseCoupon' data-item='{{item}}'>
            <image wx:if='{{item.isuse==1}}' class='imageD' src="../../image/coupon/coupon_bg.png" />
            <image wx:if='{{item.isuse==0}}' class='imageD' src="../../image/coupon/coupon_beoverdue.png" />
            
            <view class='left'>
              <label class='one'><label>¥</label>{{filter.fitPrice1(item.reduceAmt)}}</label>
              <label class='two'>{{item.fullname}}</label>
            </view>
            <view class='right'>
              <view class='aa'>{{item.name}}</view>
              <view class='bb'>限自营门店使用</view>
              <view class='cc'>{{filter.flitTime1(item.startDate)}}-{{filter.flitTime1(item.endDate)}}</view>
              <image class='dd' wx:if='{{item.id==userCouponIda}}' src="../../image/coupon/select.png" />
              <image class='dd' wx:else src="../../image/coupon/unchecked.png" />
            </view>
          </view>
         
      </scroll-view>

     <view class='b'  bindtap='makeSure'>确定</view>
   </view>

</view>


<view id='address' wx:if='{{address}}' bindtap='chooseAddress'> 
   <image class='image1' src="../../image/position_gray_icon.png" />
   <view class='msg1'>{{address.name}}  {{address.phone}}</view>
   <view class='msg2'>{{address.province}}{{address.city}}{{address.area}}{{address.address}}</view>
   <image class='image2' src="../../image/mine/jrxq.png" />
</view>

<view id='address' wx:else bindtap='chooseAddress'> 
   <image class='image3' src="../../image/position_gray_icon.png" />
   <view class='msg3'>添加收货地址</view>
   
   <image class='image2' src="../../image/mine/jrxq.png" />
</view>

<view class='shopMarket'>
	 <view class='marketItem' wx:for='{{goodsList.supplierCartVos}}' wx:for-item="company">
	 	 <view class='line'></view>
         <view class='company'>
         	{{company.companyName}}
         </view>
        
	 	
	 	<view  class='goodsItem' wx:for='{{company.supplierCartParts}}' wx:for-item="item">
	 		
             <image class='goodsImg'    src="{{item.pic}}" />
	 		 <view class='name'>{{item.name}}</view>
       <view class='name2' wx:if='{{item.normsname}}'>{{item.normsname}}</view>
	 		 <view class='activity' wx:if='{{item.activity}}'>{{item.activity}}</view>
             <view class='money'>¥<label>{{filter.fitPrice(item.amount)}}</label></view>
	 		 <view class='sub_add'>
                	
                	<label>x{{item.num}}</label>
                	
             </view>
	 	</view>
	 	<view class='item-1'>配送方式 <label>  普通配送 配送费：{{filter.fitPrice(company.logisticsAmt)}}元   <label wx:if='{{company.logisticsAmt==0}}'></label> </label></view>
        <view class='item-1'>订单备注 
        <input placeholder="选填，请先和商家协商一致" type="" name="" bindinput='textContentSeller' data-compony='{{company.merchantId}}' />
        </view>
        <view class='item-2'>共计{{company.num}}件 <label>小计: <label>¥{{filter.fitPrice(company.countAmount)}}</label></label></view>
        <view class='item-2'> 已优惠:¥{{filter.fitPrice(company.preferentialAmount)}}</view>
	 </view>
</view>

<view class='noteList'>
	<view>配件总额<label>￥{{filter.fitPrice(goodsList.allAmount)}}</label></view>
	<view>运费金额<label>￥{{filter.fitPrice(goodsList.freightAmount)}}</label></view>
	<view>活动优惠<label style="color: #FF3D10;">-￥{{filter.fitPrice(goodsList.preferentialAmount)}}</label></view>
  <view bindtap='showCoupon' wx:if='{{userCouponName}}'>优惠券<label style="color: #FF3D10;">-¥{{filter.fitPrice(userCouponName)}}  ></label></view>
  <view bindtap='showCoupon' wx:else>优惠券<label style="font-weight:bold;">请选择优惠券 > </label></view>
</view>
<view style='width: 750rpx;height: 116rpx;'></view>
<view class='bottom' wx:if='{{goodsList.countAmount}}'>

	<view class='allSelect'>
		<label>实付款:￥{{filter.fitPrice(goodsList.countAmount)}} </label> 
	</view>
    	
	<view class='subButton' bindtap='creatOrder2'>提交订单</view>
</view>
